import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { CommonService } from 'src/app/shared/service/common.service';

@Component({
  selector: 'app-index',
  templateUrl: './index.component.html',
  styleUrls: ['./index.component.scss'],
})
export class IndexComponent implements OnInit {
  constructor(
    private commonService: CommonService,
    private router: Router,
    private activatedRouter: ActivatedRoute
  ) {
    commonService.currentPath.next(['首页']);

    // console.log(router, activatedRouter);

    // this._router.navigate(['app', 'beam-definition'], {queryParams: {patientId:       patient.id}});

    //  let patientId = this.activatedRouter.snapshot.queryParams['_value']['patientId'];}
    console.log(this.activatedRouter.snapshot.queryParams)
  }

  ngOnInit(): void {}
}
